package cn.iocoder.yudao.module.vos.job;


import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.vos.service.ecdr.admin.ECdrService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Component
@Slf4j
public class VosSyncJob implements JobHandler {

    @Resource
    private ECdrService cdrService;


    @TenantIgnore
    @Override
    public String execute(String param) {
        Long tl = cdrService.sync(param);
        return String.format("同步记录为 %s 个", tl);
    }
}
